const common = require('./webpack.common')
const { merge } = require('webpack-merge')
module.exports = merge(common, {
  mode: 'development',
  devtool: 'cheap-module-eval-source-map',
  devServer: { // webpack-dev-server
    open: true,
    port: 1234,
    proxy: {
      '/api': {
        target: 'https://api.xxx.com',
        pathRewrite: {
          '^/api': ''
        },
        changeOrigin: true
      }
    },
    hot: true
  },
})